import http from '@/utils/http'

//分页查询
export function pageCookbookList(data) {
    return http.post('/api/cookbook/pageList', data)
}

//新增
export function addCookbook(data) {
    return http.post('/api/cookbook/add', data)
}

//修改
export function editCookbook(data) {
    return http.post('/api/cookbook/edit', data)
}

//详情
export function findCookbookDetail(data) {
    return http.post(`/api/cookbook/findDetail/${data}`)
}

//删除
export function deleteCookbook(data) {
    return http.post(`/api/cookbook/delete/${data}`)
}
